﻿@using MvcMall.Framework.MvcPager;
@using MvcMall.AdminPortal.Controllers.GoodsCategory.ViewModels;
@using MvcContrib.UI.Grid;
@model PagedList<GoodsCategoryDtoModel>
<div id="goodsCategoryList">
    @Html.Grid(Model).Columns(m =>
    {
        m.For(x => x.CatId).Named("分类编号").Attributes(@width => "10%");
        m.For(x => x.CatName).Named("分类名称");
        m.For(x => x.GoodsNumber).Named("商品数量");
        m.For(x => x.ParentCatName).Named("父级分类");
        m.For(x => x.CatGrade).Named("分类层次");
        m.For(x => Html.ActionLink("修改商品分类", "Edit", new { @catId = x.CatId }));
    }).Attributes(@width => "100%")
    @Html.AjaxPager(Model, new AjaxOptions { UpdateTargetId = "goodsCategoryList" })
    
</div>
